package com.delu.feign;

import com.delu.data.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("delu-rental-message-service")
public interface MessageFegin {

    @GetMapping("/mqProducer/sends")
    public Result sends(@RequestParam("phoneNum") String phoneNum, @RequestParam("body")String body);

    @GetMapping("/mqProducer/send")
    public Result send(@RequestParam("phoneNum") String phoneNum);

}
